package vamp
/**
 * The vamp_serviceweb.Userequest entity.
 *
 * @author    
 *
 *
 */

class Userequest {
    static mapping = {
         table 'userequest'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id generator:'identity', column:'iduserequest'
         nfcequipment column:'idnfcequipment'
         member column:'idmember'
    }
    Date timestamp
    String comment
    Integer requeststatus
    // Relation
    Nfcequipment nfcequipment
    // Relation
    Member member

    static constraints = {
        timestamp()
        comment()
        requeststatus(max: 2147483647)
        nfcequipment()
        member()
    }
    String toString() {
        return "${id}"
    }
}
